export default defineAppConfig({
  pages: ['pages/index/index', 'pages/order/index', 'pages/userInfo/index'],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black',
  },
  tabBar: {
    selectedColor: '#FF4725',
    color: '#151515',
    borderStyle: 'white',
    list: [
      {
        iconPath: './assets/images/home.png',
        selectedIconPath: './assets/images/homeSelect.png',
        text: '首页',
        pagePath: 'pages/index/index',
      },
      {
        iconPath: './assets/images/order.png',
        selectedIconPath: './assets/images/orderSelect.png',
        text: '订单',
        pagePath: 'pages/order/index',
      },
      {
        iconPath: './assets/images/me.png',
        selectedIconPath: './assets/images/meSelect.png',
        text: '我的',
        pagePath: 'pages/userInfo/index',
      },
    ],
  },
  subPackages: [
    {
      root: 'subPackages/common',
      name: 'commonModules',
      pages: ['pages/address/index', 'pages/chat/index'],
    },
    {
      root: 'subPackages/takeout',
      name: 'takeOutModule',
      pages: ['pages/index/index'],
    },
    {
      root: 'subPackages/shoppingMall',
      name: 'shoppingModule',
      pages: ['pages/index/index'],
    },
  ],
  permission: {
    'scope.userLocation': {
      desc: '获取地理位置信息的用途描述',
    },
  },
})
